package com.hzhc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 班列计划
 * </p>
 *
 * @author 1
 * @since 2024-05-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("train_plan")
public class TrainPlan implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 班列名称
     */
    private String trainPlanName;

    /**
     * 装卸类型(zc:装  xc:卸)
     */
    private String type;

    /**
     * 始发站
     */
    private String beginStation;

    /**
     * 终点站
     */
    private String endStation;

    private Long userId;

    private LocalDateTime createTime;

    private Long updateUserId;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    private Integer disable;

    /**
     * 计划装/卸时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime planWorkTime;

    private Integer loadZl;//是否发送装车指令

    private String trainPlanNo;//计划号、班列号

    private Integer status;//完工状态  0默认未完工   10已完工

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime finishTime;

    private String area;//堆存区域

    private Integer strands;//股道
}
